Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set maximum unchecked blocks in config #4342

Merged

Conversation

RickiNano
Copy link
Contributor

This PR makes the maximum number of unchecked blocks to store in memory configurable by using a new "max_unchecked_blocks" setting in config-node.toml. It defaults to 65536 blocks (the current hardcoded number)

@RickiNano RickiNano force-pushed the configurable-unchecked-blocks branch from 45c7b4f to ce11ced Compare January 26, 2024 14:25
nano/node/nodeconfig.cpp Outdated Show resolved Hide resolved
nano/node/nodeconfig.cpp Outdated Show resolved Hide resolved
nano/node/unchecked_map.cpp Outdated Show resolved Hide resolved
nano/node/unchecked_map.hpp Outdated Show resolved Hide resolved
nano/node/unchecked_map.hpp Outdated Show resolved Hide resolved
@dsiganos
Copy link
Contributor

You should add some code to check this new config in the test cases:

  • toml.daemon_config_deserialize_no_defaults
  • toml.daemon_config_deserialize_defaults

@RickiNano RickiNano requested a review from dsiganos January 29, 2024 20:47
@dsiganos dsiganos merged commit 244e49c into nanocurrency:develop Jan 30, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants